package club.banyuan;

public class EBook extends Book {
    private double sizeMB;

    public EBook() {
    }

    public EBook(String title, int price, int cost, int pages) {
        super(title, price, cost, pages);
    }

    public EBook(String title, int price, int cost, int pages, double sizeMB) {
        super(title, price, cost, pages);
        this.sizeMB = sizeMB;
    }

    public double getSizeMB() {
        return sizeMB;
    }

    public void setSizeMB(double sizeMB) {
        this.sizeMB = sizeMB;
    }
}
